//
//  GGCarDetailModel.m
//  GGCar
//
//  Created by 热带雨林 on 2020/3/13.
//  Copyright © 2020 热带雨林. All rights reserved.
//

#import "GGCarDetailModel.h"

@implementation GGCarDetailModel
- (instancetype)initCarWithDic:(NSDictionary *)dic{
    if(self = [super init]){
        _name = dic[@"name"];
        _icon = dic[@"icon"];
    }
    return self;
}

+ (instancetype)carWithDic:(NSDictionary *)dic{
    //此处为何这么写
    return [[self alloc]initCarWithDic:dic];
}

@end
